home *** CD-ROM | disk | FTP | other *** search
- Path: sourcery.han.de!not-for-mail
- Newsgroups: comp.sys.amiga.programmer
- References: <13213602@sourcery.han.de> <1005.6624T1300T707@teclink.net>
- From: "Olaf Barthel" <olsen@sourcery.han.de>
- Date: Sat, 24 Feb 1996 15:39:53 +0100
- X-NewsReader: IntuiNews 1.3a (7.9.95)
- Subject: Re: Update to Native Developer Kit 3.1: Request for ideas
- Message-ID: <13213657@sourcery.han.de>
-
- In Article <1005.6624T1300T707@teclink.net>, rad <rad@teclink.net> wrote:
- >
- > >Amiga Technologies is planning an update to the Native Developer Kit 3.1 and
- > >while already a fair number of ideas what to change in the update have been
- > >collected I would like to ask what you want to see changed.
- >
- > The thing I would like most to see in an update is the correcting of
- > prototypes in headers to indicate when constant pointers can be passed.
- >
- > (e.g. in clib/dos.h:
- >
- > BPTR Open (CONST STRPTR name, long accesMode);
- > LONG Write (BPTR file, CONST APTR buffer, long length);
- > LONG DeleteFile (CONST STRPTR name);
- > LONG Rename (CONST STRPTR oldName, CONST STRPTR newName);
- > BPTR Lock (CONST STRPTR name, long type);
- > ...
- >
- > )
-
- I'm working on that, but the CONST qualifier is trickier than one
- might expect. For example, the current (6.56) SAS/C optimizer generates
- worse code when hitting functions to use const qualifiers for their
- arguments. Also, "const <type>" is different from "<type> const" if
- <type> is a pointer type. While simple #defines may make sense in the
- OS prototypes you might be unable to use these definitions in your
- own code.
-
- --
- Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
- Net: olsen@sourcery.han.de
-